package com.jk.vehicle.mini.dao;

import com.jk.vehicle.mini.entity.ElectricBicycle;
import com.jk.vehicle.mini.vo.BicycleLinkIdVO;
import com.jk.vehicle.mini.vo.BicycleOfUserVO;
import com.jk.vehicle.core.mapper.Mapper;
import com.jk.vehicle.mini.vo.BicycleDetailOfUserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ElectricBicycleMapper extends Mapper<ElectricBicycle> {
    /**
     * 根据车辆id查询对应的型号id、厂家id
     * @param bicycleId 车辆id
     * @return 结果
     */
    List<BicycleLinkIdVO> queryBicycleLinkId(@Param("bicycleId") Long bicycleId);

    /**
     * 查询用户关联的车辆信息
     * @param userId 用户ID
     * @return 结果
     */
    List<BicycleOfUserVO> queryBicycleOfUser(@Param("userId") Long userId);

    /**
     * 查询用户关联的车辆信息
     * @param userId 用户ID
     * @return 结果
     */
    List<BicycleDetailOfUserVO>  queryBicycleDetailOfUser(@Param("userId") Long userId, @Param("corpId") Long corpId);

}